<form action="add" >
    <h2 align="center">请注册</h2>
    <table align="center">
        <tr>
            <td>用户名：</td>
            <td><input type="text" name="name" id="mess" onblur="checkName()"></td>
            <td>    <span id="message"></span></td>
        </tr>
        <tr>
            <td>密 &nbsp;码：</td>
            <td><input type="password" name="pwd" id="ipwd" onblur="sspwd()"></td>
            <td> <span id="spwd"></span></td>
        </tr>
        <tr>
            <td>确认密码：</td>
            <td><input type="password" name="pwd2" id="pwd2" onblur="checkPwd()"></td>
            <td> <span  id="spwd2"></span></td>
        </tr>
        <tr>
            <td><input type="reset" value="重置"></td>
            <td> <input type="submit" value="注册"  ></td>
        </tr>

    </table>
</form><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/8/9
  Time: 10:53
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<form action="add" >
    <h2 align="center">请注册</h2>
    <table align="center">
        <tr>
            <td>用户名：</td>
            <td><input type="text" name="name" id="mess" onblur="checkName()"></td>
            <td>    <span id="message"></span></td>
        </tr>
        <tr>
            <td>密 &nbsp;码：</td>
            <td><input type="password" name="pwd" id="ipwd" onblur="sspwd()"></td>
            <td> <span id="spwd"></span></td>
        </tr>
        <tr>
            <td>确认密码：</td>
            <td><input type="password" name="pwd2" id="pwd2" onblur="checkPwd()"></td>
            <td> <span  id="spwd2"></span></td>
        </tr>
        <tr>
            <td><input type="reset" value="重置"></td>
            <td> <input type="submit" value="注册"  ></td>
        </tr>

    </table>
</form>
</body>
</html>
